﻿using System.Collections.Generic;
using System.ServiceModel;
using Server.Dto;

namespace Server.Contract
{
    [ServiceContract]
    public interface IPublishService
    {
        [OperationContract]
        void Publish();

        [OperationContract]
        List<ProductDto> GetProducts();

        [OperationContract]
        void SaveProduct(ProductDto product);

        [OperationContract]
        void DeleteProduct(ProductDto product);
    }
}
